package com.dzx.design.behavioral.command;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年08月14日 17:08:50
 */
public class OpenCourseVideo implements Command{

    private CourseVideo courseVideo;

    public OpenCourseVideo(CourseVideo courseVideo) {
        this.courseVideo = courseVideo;
    }

    @Override
    public void execute() {
        courseVideo.open();
    }
}
